Skip to content

Equinix fix matching maintenance_id in alternative email subject line#411

Merged
jvanderaa merged 9 commits intonetworktocode:developfrom
i3dnet-akoopen:patch-2
May 6, 2026
Merged

Equinix fix matching maintenance_id in alternative email subject line#411
jvanderaa merged 9 commits intonetworktocode:developfrom
i3dnet-akoopen:patch-2

Conversation

@i3dnet-akoopen
Copy link
Copy Markdown
Contributor

Equinix seems to be not consistent with their email subject lines, causing an issue matching the maintenance_id. Recent examples include:

COMPLETED - Remedial Emergency Maintenance - SG Metro Area Network Maintenance - 04-APR-2026 [CHG0124084]
Service Impacting - Remedial - Dark Fiber Activity - SG Metro Area - Network Maintenance - 03-MAY-2026 - CHG0125903

The current parser is looking for a string between square brackets, but that will not work in the second email subject line. Proposal is to fall back on looking for the string CHG[0-9]+ as Equinix has recently switched to this format for announcing maintenances/changes.

…tenance_id

Moving forward, maintenance ID's for Equinix are in the format of CHG[0-9]+
Support old and new maintenance_id format; only fall back on matching for CHG[0-9]+ in case maintenance_id is not matched between brackets
Changelog message
@jvanderaa
Copy link
Copy Markdown
Contributor

A few updates for this:

  • First please include a sanitized test version for us to be able to validate that the change will handle it
  • Update the file extension on the town crier change log to exclude .rst
  • Then once the tests pass we will be able to get it in

@i3dnet-akoopen
Copy link
Copy Markdown
Contributor Author

I've made the requested changes, also added a new test (equinix10.eml with associated JSON output). The tests on my machine seems to run OK.

@i3dnet-akoopen
Copy link
Copy Markdown
Contributor Author

Added another Equinix test, but only for parsing email subject (equinix11_subject.eml)

Copy link
Copy Markdown
Contributor

@jvanderaa jvanderaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of small nits in the comments, no issue. One change in the double assignment and we will be good on this one.

Comment thread circuit_maintenance_parser/parsers/equinix.py Outdated
Comment thread circuit_maintenance_parser/parsers/equinix.py Outdated
Comment thread circuit_maintenance_parser/parsers/equinix.py Outdated
i3dnet-akoopen and others added 3 commits May 6, 2026 16:41
Co-authored-by: Josh VanDeraa <josh@josh-v.com>
Co-authored-by: Josh VanDeraa <josh@josh-v.com>
Co-authored-by: Josh VanDeraa <josh@josh-v.com>
@i3dnet-akoopen
Copy link
Copy Markdown
Contributor Author

Fixed

Copy link
Copy Markdown
Contributor

@jvanderaa jvanderaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good.

@jvanderaa jvanderaa merged commit a4636cc into networktocode:develop May 6, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants